package cn.tanghan.hikaricp.service.impl;

import cn.tanghan.hikaricp.entity.branch.Role;
import cn.tanghan.hikaricp.mapper.branch.RoleMapper;
import cn.tanghan.hikaricp.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author tanghan
 */
@Service
public class RoleServiceImpl implements RoleService {
    @Resource
    private RoleMapper roleMapper;

    @Override
    public List<Role> getList() {
        return roleMapper.getAll();
    }
}
